package com.service;

import com.dao.AdminDao;
import com.domain.AdminBean;

import java.util.List;

public class AdminService {
    private AdminDao adminDao = new AdminDao();

    public static void addAdmin(AdminBean admin) {
        AdminDao.addAdmin(admin);
    }

    public static void deleteAdmin(int adminId) {
        AdminDao.deleteAdmin(adminId);
    }

    public static void updateAdminPassword(int adminId,String adminPwd) {
        AdminDao.updateAdminPassword(adminId,adminPwd);
    }

    public static List<AdminBean> selectAd() {
        return AdminDao.selectAd();
    }
}
